package com.yao.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动商品宣传
 * </p>
 *
 * @author author
 * @since 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("activity")
@ApiModel(value="Activity对象", description="活动商品宣传")
public class Activity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品分类id")
    @TableField("category2Id")
    private Integer category2Id;

    @ApiModelProperty(value = "图片资源地址")
    @TableField("imageUrl")
    private String imageUrl;


    public Activity() {
    }

    public Activity(Integer id, Integer category2Id, String imageUrl) {
       this.id = id;
        this.category2Id = category2Id;
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return category2Id
     */
    public Integer getCategory2Id() {
        return category2Id;
    }

    /**
     * 设置
     * @param category2Id
     */
    public void setCategory2Id(Integer category2Id) {
        this.category2Id = category2Id;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String toString() {
        return "Activity{serialVersionUID = " + serialVersionUID + ", id = " + id + ", category2Id = " + category2Id + ", imageUrl = " + imageUrl + "}";
    }
}
